kexec/uefi: copy secure_boot flag in boot params across kexec reboot
authorDave Young <dyoung@redhat.com>
Tue, 6 Oct 2015 12:31:31 +0000 (13:31 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 27 Feb 2017 15:58:07 +0000 (15:58 +0000)
commit3ea0f248bc3005dce07a58c947ebff21c57a3acd
tree928f2f92bc5dcc9ca8de38fbca4453d91b733d67
parent51ac9a670e85656d483f7f788fce28b61fe0384b
kexec/uefi: copy secure_boot flag in boot params across kexec reboot

Kexec reboot in case secure boot being enabled does not keep the secure
boot mode in new kernel, so later one can load unsigned kernel via legacy
kexec_load.  In this state, the system is missing the protections provided
by secure boot. Adding a patch to fix this by retain the secure_boot flag
in original kernel.

secure_boot flag in boot_params is set in EFI stub, but kexec bypasses the
stub. Fixing this issue by copying secure_boot flag across kexec reboot.

Signed-off-by: Dave Young <dyoung@redhat.com>
Gbp-Pq: Topic features/all/securelevel
Gbp-Pq: Name kexec-uefi-copy-secure_boot-flag-in-boot-params-acro.patch
arch/x86/kernel/kexec-bzimage64.c